package com.fuchuang.seckillsystem.dto;

import java.util.Date;

public class ActivityQuery extends PageQuery {
    
    private Date pastTime = new Date(System.currentTimeMillis() - TimeConstants.ACTIVITY_PAST * 60 * 60 * 1000);
    
    private Date futureTime = new Date(System.currentTimeMillis() + TimeConstants.ACTIVITY_FUTURE * 60 * 60 * 1000);
    
    public ActivityQuery(Date startTime, Date endTime) {
        this.pastTime = startTime;
        this.futureTime = endTime;
    }
    
    public ActivityQuery() {
    }
    
    public Date getPastTime() {
        return pastTime;
    }
    
    public void setPastTime(Date pastTime) {
        this.pastTime = pastTime;
    }
    
    public Date getFutureTime() {
        return futureTime;
    }
    
    public void setFutureTime(Date futureTime) {
        this.futureTime = futureTime;
    }
    
    @Override
    public String toString() {
        return "ActivityQuery{" +
                "startTime=" + pastTime +
                ", endTime=" + futureTime +
                "} " + super.toString();
    }
}
